/*
 * Answer Class by CintasFox
 *
 * Copyright (c) 2011 CintasFox
 */
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
#include <errno.h>

class Answer
{
private:
	int length;
	char* AnswerString;
	char* SecString;
	int count;
	int seccount;
	int mode;

	errno_t cat(char* dest, const char* source);
	void init(int tlength);
	void clear();

public:
	Answer();
	Answer(int tlength);
	~Answer();

	int append( const char* appstr, int Type);
	char* giveAnswer();
	void clearAnswer(int tlength);
	int check();
};